﻿using SoldiHive.Core.Adapters;
using SoldiHive.Model;

namespace SoldiHive.Core.Crawlers
{
	public class CurrentPriceCrawler : ICurrentPriceCrawler
	{
		private ICurrentPriceAdapter currentPriceAdapter;

		public CurrentPriceCrawler(ICurrentPriceAdapter currentPriceAdapter)
		{
			this.currentPriceAdapter = currentPriceAdapter;
		}

		public double GetCurrentPrice(Company company)
		{
			var currentPrice = this.currentPriceAdapter.GetCurrentPrice(company);

			return currentPrice;
		}
	}
}
